﻿using System.ComponentModel.DataAnnotations;

namespace Entity.WMS.DTO.WarehouseOtherIn
{
    /// <summary>
    /// 其他入库表模型 - 新增
    /// </summary>
    public class WarehouseOtherInAddDTO
    {
        /// <summary>
        /// 其他入库编码
        /// </summary>
        [Required(ErrorMessage = "其他入库编码Code不能为空")]
        public string Code { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string? Remark { get; set; }

        /// <summary>
        /// 其他入库单子单
        /// </summary>
        [Required(ErrorMessage = "其他入库单子单Items不能为空")]
        public List<WarehouseOtherInItemAddDTO> Items { get; set; }
    }
}
